import _ from 'lodash'
import './style.css'
import Icon from './image.png';
function component() {
    const element = document.createElement('div');
    // 执行这一行需要引入 lodash（目前通过 script 脚本引入）
    element.innerHTML = _.join(['你好', 'webpack'], ' ');
    element.classList.add('hello')
    const myIcon = new Image();
    myIcon.src = Icon;
    myIcon.width = 100;
    myIcon.height = 100;
    element.appendChild(myIcon);
    return element;
  }
  
  document.body.appendChild(component());